<?php //debug($clientes);exit;?>
<!-- Columns -->
<div id="cols" class="box"> 

    <!-- Aside (Left Column) -->
    <div id="aside" class="box">
        <div class="padding box"> 

            <!-- Logo (Max. width = 200px) -->
            <p id="logo"><a href="#"><?php echo $this->Html->image('logo.gif', array('alt' => 'logo')) ?></a></p>

            <!-- Search -->
            <form action="#" method="get" id="search">
                <fieldset>
                    <legend>Busqueda</legend>
                        <input type="text" size="17" name="" class="input-text" />
                        &nbsp;
                        <input type="submit" value="OK" class="input-submit-02" />
                </fieldset>
            </form>

        </div>
        <!-- /padding -->

        <ul class="box">
            <li id="submenu-active"><a href="#">LISTA ALMACEN</a></li>
            <li><?php echo $this->Html->link('REGISTRAR ESPACIO', 'insertar'); ?></li>
            <li><a href="#">IMPRIMIR LISTA ALMACEN</a></li>
        </ul>
    </div>
    <!-- /aside -->

    <hr class="noscreen" />

    <!-- Content (Right Column) -->
    <div id="content" class="box">
        <h1>Clientes</h1>
            <table>
            <tr>
                <th>Nro</th>
                <th>Nombre</th>
                <th>Descripcion</th>
                <th>Acciones</th>
            </tr>
            <?php $i = 1;?>
            <?php foreach ($almacenes as $emp): ?>
            
                <tr <?php echo fmod($i, 2) ? "class = bg" : "";?>>
                    <td><?php echo $i;  $i++;?></td>
                    <td><?php echo $emp['Almacene']['nombre']; ?></td>
                    <td><?php echo $emp['Almacene']['descripcion']; ?></td>
                    <td>
                        <?php echo $this->Html->link($this->Html->image('/images/edit.png', array("alt" => 'Editar')), array('action' => 'editar', $emp['Almacene']['id']), array('escape' => false)); ?>&nbsp;
<?php echo $this->Html->link($this->Html->image('/images/edit.png', array("alt" => 'Eliminar')), array('action' => 'eliminar', $emp['Almacene']['id']), array('escape' => false)); ?>&nbsp;
                    </td>
                </tr>
            <?php endforeach; ?>

        </table>
        </div>

    </div>
    <!-- /content --> 

</div>
<!-- /cols -->
